#!/usr/bin/python
# -*- coding: UTF-8 -*-
# @Time		:2018/3/1 10:18
# @Author	:RNone
from api.common_search import common_search


class dns_data(common_search):
	def test_dns_search(self, caseDict):
		'''dns数据查询测试'''
		caseDict['params'] = dict(
			{
				'indexName': 'dns-result',
				'module': 19
			}
		,**caseDict['params'])
		caseDict = self.test_search_data(caseDict)
		return caseDict

	def test_dns_app_search(self, caseDict):
		'''dns软件识别查询测试'''
		caseDict['params'] = dict(
			{
				'indexName': 'dns-result',
				'module': 20,
				'conditions': [
					{
						'field': 'soft_cn',
						'value': '',
						'op': 'not'
					}
				]
			}
			, **caseDict['params'])
		caseDict = self.test_search_data(caseDict)
		return caseDict


if __name__ == '__main__':
	params = {'host': '192.168.60.186'}
	vc = dns_data()
	vc.test_dns_search(params)
